<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html">
    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Login</title>
        <link rel="stylesheet" type="text/css" href="login.css" />
    </h:head>
    <h:body style="text-align: center">
        <h:outputStylesheet library="css" name="estilo.css" />

        <div id="loginBox">
            <div id="loginBoxInterno">
                <div id="loginBoxLabel">SICGEH - SISTEMA DE ACESSO</div>
                <div id="divMsg">
                    <h:panelGroup rendered="#{!empty param.login_erro}">
                        <span style="color: red">Erro ao efetuar o login</span><br />
                        Motivo: #{SPRING_SECURITY_LAST_EXCEPTION.message}
                    </h:panelGroup>
                </div>
                <form id="login" method="post" action="#{request.contextPath}/j_spring_security_check">
                    <div class="inputDiv">
                        <input id="username" type="text" name="j_username" value="Usuário" onfocus="this.value = ''"/> 
                    </div>

                    <div class="inputDiv" id="senha">
                        <input id="password" type="password" name="j_password" value="Senha" onfocus="this.value = ''" /> 
                    </div>
                    <div id="botoes">
                        <div id="botao"><input type="submit" value="Entrar" /></div>
                        <!--div id="lembrarSenha"><input type="checkbox" name="_spring_security_remember_me" /> Lembrar minha senha</div-->
                    </div>             
                </form>
            </div>
        </div>
    </h:body>
</html>

